import { connect } from 'react-redux'

import { actions } from '../modules/article'
// import { fetchDestinations, searchDestinations } from 'reducers/destination'
import { setTitle } from 'reducers/common'
// import { getMe } from 'reducers/user'
import Article from '../components/Article'

const mapActionCreators = {
  ...actions,
  setTitle
}

const mapStateToProps = (state) => ({
  addArticle: state.article,
  user: state.user
})

export default connect(mapStateToProps, mapActionCreators)(Article)
